<?php
/**
 * Enter description here...
 *
 * @package if
 * @subpackage module.helper.controllers
 * @since 1.0
 */
class IfHelperContextController extends IHelperController {
	function doIndex() {
		ISession::singleton()->start();
	}
	
	function doClearCookie() {
		foreach (x("*") as $key => $value) {
			$cookie = new ICookie($key, 0);
			$cookie->send();
		}
		$this->redirect("index");
	}
	
	function doClearSession() {
		foreach (x("#") as $key => $value) {
			unset($_SESSION[$key]);
		}
		$this->redirect("index");
	}
}

function if_helper_vardump($var) {
	return "<xmp>" . print_r($var, true) . "</xmp>";
}

?>